/* ===== RESET ET STYLES DE BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

html {
    scroll-behavior: smooth;
}

/* ===== FOOTER ===== */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-section p, .footer-section a {
    color: #ccc;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 0.9em;
}

/* ===== COMPOSANTS RÉUTILISABLES ===== */
/* Boutons */
.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1em;
    border: 2px solid transparent;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn:active::after {
    width: 100px;
    height: 100px;
}

.btn-primary {
    background-color: #2c5530;
    color: white;
}

.btn-primary:hover {
    background-color: #1e5c32;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 85, 48, 0.3);
}

.btn-secondary {
    background-color: #4a7c59;
    color: white;
}

.btn-secondary:hover {
    background-color: #3a6c49;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 124, 89, 0.3);
}


/* Formulaires */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c5530;
    font-weight: bold;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-group-full {
    position: relative;
    margin-bottom: 20px;
}

.form-group-full label {
    display: block;
    margin-bottom: 8px;
    color: #2c5530;
    font-weight: bold;
    transition: all 0.3s ease;
    transform-origin: left center;
}

.form-group-full input, .form-group-full select, .form-group-full textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.form-group-full.focused label {
    color: #2c5530;
    transform: translateY(-25px) scale(0.8);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #2c5530 !important;
    box-shadow: 0 0 0 2px rgba(44, 85, 48, 0.1);
}

/* ===== SECTIONS COMMUNES À TOUTES LES PAGES ===== */
/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e8f4ea 0%, #c8e6c9 100%);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5em;
    color: #2c5530;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero p {
    font-size: 1.2em;
    color: #555;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}


/* Page Header (pour pages internes) */
.page-header {
    background: linear-gradient(135deg, #e8f4ea 0%, #c8e6c9 100%);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: #2c5530;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.page-header p {
    color: #555;
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
}

.page-content {
    padding: 60px 0;
}


/* CTA Section */
.cta {
    background-color: #2c5530;
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 2em;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1em;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta .btn {
    background-color: white;
    color: #2c5530;
}

/* ===== ANIMATIONS ET EFFETS ===== */
/* Animations de base */
body:not(.loaded) * {
    transition: none !important;
}

header.visible {
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero.visible {
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Animation partenaires */
@keyframes slidePartners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 8 - 2rem * 8));
    }
}

.partners-slider:hover .partners-track {
    animation-play-state: paused;
}


/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


/* Pulse animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(44, 85, 48, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(44, 85, 48, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(44, 85, 48, 0);
    }
}


/* Confetti */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #4CAF50;
    opacity: 0;
    z-index: 1000;
    animation: confettiFall 3s ease-in-out;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Animation partenaires infinie */
@keyframes slidePartnersInfinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 8 - 2rem * 8));
    }
}

.partners-track {
    animation: slidePartnersInfinite 45s linear infinite;
}

/* Pause animation on hover */
.partners-slider:hover .partners-track {
    animation-play-state: paused;
}

/* Responsive animations partenaires */
@media (max-width: 768px) {
    @keyframes slidePartnersInfiniteMobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-150px * 8 - 1.5rem * 8));
        }
    }
    
    .partners-track {
        animation: slidePartnersInfiniteMobile 40s linear infinite;
    }
}

@media (max-width: 480px) {
    @keyframes slidePartnersInfiniteSmall {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-120px * 8 - 1rem * 8));
        }
    }
    
    .partners-track {
        animation: slidePartnersInfiniteSmall 35s linear infinite;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-buttons, .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .timeline:before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-content:after {
        left: -40px !important;
    }
    
    .stats-grid, .process-steps, .news-grid, .missions-grid, .actions-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    
    .action-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card, .news-card, .mission-card, .action-card, .team-member {
        transform: none !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
    
    .legal-grid, .principles-grid, .data-types, .usage-grid, .rights-grid, .security-measures {
        grid-template-columns: 1fr;
    }
    
    .legal-actions, .rights-actions, .privacy-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .legal-section h2, .privacy-section h2 {
        font-size: 1.5em;
    }
    
    .legal-card, .privacy-badge, .contact-card {
        padding: 20px;
    }
    
    .partners-track {
        animation: slidePartnersMobile 25s linear infinite;
        gap: 1.5rem;
    }
    
    .partner-item {
        flex: 0 0 150px;
        padding: 1.5rem 0.8rem;
    }
    
    .partner-logo {
        height: 60px;
        margin-bottom: 0.8rem;
    }
    
    .partner-logo img {
        max-height: 50px;
        max-width: 100px;
    }
    
    .partner-item h4 {
        font-size: 1em;
    }
    
    .partner-item p {
        font-size: 0.8em;
    }
    
    @keyframes slidePartnersMobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-150px * 8 - 1.5rem * 8));
        }
    }
}

@media (max-width: 480px) {
    .action-stats {
        grid-template-columns: 1fr;
    }
    
    .action-content {
        margin-bottom: 40px;
    }
    
    .partners-track {
        animation: slidePartnersSmall 20s linear infinite;
        gap: 1rem;
    }
    
    .partner-item {
        flex: 0 0 120px;
        padding: 1rem 0.5rem;
    }
    
    .partner-logo {
        height: 50px;
        margin-bottom: 0.5rem;
    }
    
    .partner-logo img {
        max-height: 40px;
        max-width: 80px;
    }
    
    .partner-item h4 {
        font-size: 0.9em;
    }
    
    .partner-item p {
        font-size: 0.75em;
    }
    
    @keyframes slidePartnersSmall {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-120px * 8 - 1rem * 8));
        }
    }
}

